package com.saihai.jiankang.HrmCity.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.saihai.jiankang.HrmCity.mapper.HrmCityMapper;
import com.saihai.jiankang.HrmCity.domain.HrmCity;
import com.saihai.jiankang.HrmCity.service.IHrmCityService;

/**
 * 城市Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-12
 */
@Service
public class HrmCityServiceImpl implements IHrmCityService 
{
    @Autowired
    private HrmCityMapper hrmCityMapper;

    /**
     * 查询城市
     * 
     * @param id 城市主键
     * @return 城市
     */
    @Override
    public HrmCity selectHrmCityById(Long id)
    {
        return hrmCityMapper.selectHrmCityById(id);
    }

    /**
     * 查询城市列表
     * 
     * @param hrmCity 城市
     * @return 城市
     */
    @Override
    public List<HrmCity> selectHrmCityList(HrmCity hrmCity)
    {
        return hrmCityMapper.selectHrmCityList(hrmCity);
    }

    /**
     * 新增城市
     * 
     * @param hrmCity 城市
     * @return 结果
     */
    @Override
    public int insertHrmCity(HrmCity hrmCity)
    {
        return hrmCityMapper.insertHrmCity(hrmCity);
    }

    /**
     * 修改城市
     * 
     * @param hrmCity 城市
     * @return 结果
     */
    @Override
    public int updateHrmCity(HrmCity hrmCity)
    {
        return hrmCityMapper.updateHrmCity(hrmCity);
    }

    /**
     * 批量删除城市
     * 
     * @param ids 需要删除的城市主键
     * @return 结果
     */
    @Override
    public int deleteHrmCityByIds(Long[] ids)
    {
        return hrmCityMapper.deleteHrmCityByIds(ids);
    }

    /**
     * 删除城市信息
     * 
     * @param id 城市主键
     * @return 结果
     */
    @Override
    public int deleteHrmCityById(Long id)
    {
        return hrmCityMapper.deleteHrmCityById(id);
    }
}
